<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<script type="text/javascript" src="/${initParam.context_root }/script/member_script.js"></script>
<link href="/${initParam.context_root }/css/starter-template2.css" rel="stylesheet">
<link href="/${initParam.context_root }/css/login-form.css" rel="stylesheet">
<body>
	<div class="container">
		<div class="starter-template">
<form name="form" method="post" class="register" action="/${initParam.context_root }/member/login/modify.do" onsubmit="return FormCheck(this);">
	<input type="hidden" name="id" value="${sessionScope.login_info.id }">
	<input type="hidden" name="nickname" value="${sessionScope.login_info.nickname }">
	<input type="hidden" name="name" value="${sessionScope.login_info.name }">

		<h1>내 정보 수정</h1>
		<br>
		<fieldset class="row1" >
			<legend>기본정보</legend>
				<p>
						<label>ID</label><label  style="text-align:left; padding-left:30px; width:85px">${sessionScope.login_info.id }</label>
				</p>
				<p>
					<label>E-mail</label><input type="text" name="email" style="text-align:right; padding-right:15px;" value="${sessionScope.login_info.email }">
				</p>
				<p>
					<label>비밀번호</label><input type="password" name="password"> <label style="width:100px; padding-right:15px;">비밀번호 확인</label>
						<input type="password" name="password_check">
				</p>
		</fieldset>

		<fieldset class="row1">
			<legend>상세 정보</legend>
				<p>
					<label>이름</label> <label style="text-align:left; padding-left:30px; width:85px;">${sessionScope.login_info.name }</label>
					
				</p>
				<p>
					<label>닉네임</label> <label style="text-align:left; padding-left:30px; width:85px"> ${sessionScope.login_info.nickname }</label>
				</p>
				<p>
					<label>생년월일</label><input type="text" name="birth" style="text-align:mid; padding-left:30px;" value="${sessionScope.login_info.birth }" maxlength="8">
					<label style="text-align:left">ex. 19990101</label>
				</p>
				<p>
					<label>H.P</label>
					<select name="hp1"style="text-align:right; width:59px">
					<option value="${requestScope.hp1 }">${requestScope.hp1 }</option>
					<option value="0">-----</option>
					<option value="010">010</option>
					<option value="011">011</option>
					<option value="016">016</option>
					<option value="017">017</option>
					<option value="070">070</option>
					</select> <input type="text" name="hp2" size="5" style="text-align:right; padding-right:15px; width:85px" value="${requestScope.hp2}" maxlength="4"> 
						<input type="text" name="hp3" style="text-align:right; padding-right:15px; width:85px"  value="${requestScope.hp3}" maxlength="4" > 
						<input	type="hidden" name="hp">
				</p>
				<p>
					<label>주소</label> <input type="text" name="city" style="text-align:right; padding-right:15px; width:117px" value="${sessionScope.login_info.city }" size="5" placeholder="시/도">&nbsp; 
					<input type="text" name="town" style="text-align:right; padding-right:15px; width:117px" value="${sessionScope.login_info.town }" size="5" placeholder="구/군">
				</p>
		</fieldset>
		<fieldset class="row1">
			<legend>자기소개</legend>
				<p>
					<textarea cols="110" rows="6" name="selfIntroduction" placeholder="자신의 매력을 뽐내주세요!">${sessionScope.login_info.selfIntroduction }</textarea>
				</p>
			<legend>가입일</legend>
				<p>${sessionScope.login_info.joinDate }</p>
		</fieldset>
			<input type="submit" value="수정" id="sub" class="btn btn-success">&nbsp;&nbsp;<input type="reset" value="다시작성" class="btn btn-warning" id="sub">
</form>
		</div>
	</div>
</body>



